package com.youyun56.gps.android.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.youyun56.gps.android.service.LocationUploadService;

public class LocationServiceBootReceiver extends BroadcastReceiver {
    private final static String tag = LocationServiceBootReceiver.class.getName();

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(tag, "android has started");
        Intent service = new Intent();
        service.setClass(context, LocationUploadService.class);
        context.startService(intent);
    }
}
